<?php
/**
 * @return
 * @author 朱乐斌
 * @date
 */

namespace app\api\validate;

use think\Validate;

class ReleasePositionValidate extends Validate
{

    // 定义验证规则
    protected $rule = [
        'name' => 'require|max:25',
    ];

    // 定义提示信息
    protected $message = [
        'name.require' => '请输入职位名称',
        'name.max' => '职位名称不能超过25个字符',
    ];

    // 定义应用场景
    protected $scene = [
        'releasePosition' => ['name']
    ];



}